//
//  PopupTemplate.h
//  TowerDefence
//
//  Created by User on 6/26/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "GameLayer.h"
#import "cocos2d.h"
#import "Define.h"
#import "GameResourceDefine.h"

@protocol PopupDelagate <NSObject> 

-(void)popupOKButtonClick;
-(void)popupCancelButtonClick;

@end

@interface PopupTemplate : NSObject {
    GameLayer *gameLayer;
    CCSprite *backgroundCover;
    CCSprite *mainSprite;
    id<PopupDelagate> delegate;
}

-(id)initPopupWith:(GameLayer *)_gameLayer;
-(void)showPopup;
-(void)closePopup;
-(void)cancelButtonClick;
-(void)okButtonClick;

@property (nonatomic, retain) id<PopupDelagate> delegate;
@property (nonatomic, retain) CCSprite *mainSprite;

@end
